import request from '@/utils/request'

// 查询登陆轮播图列表
export function listLoginimg(query) {
  return request({
    url: '/system/loginimg/list',
    method: 'get',
    params: query
  })
}

// 查询登陆轮播图详细
export function getLoginimg(id) {
  return request({
    url: '/system/loginimg/' + id,
    method: 'get'
  })
}

// 新增登陆轮播图
export function addLoginimg(data) {
  return request({
    url: '/system/loginimg',
    method: 'post',
    data: data
  })
}

// 修改登陆轮播图
export function updateLoginimg(data) {
  return request({
    url: '/system/loginimg',
    method: 'put',
    data: data
  })
}

// 删除登陆轮播图
export function delLoginimg(id) {
  return request({
    url: '/system/loginimg/' + id,
    method: 'delete'
  })
}
